package com.cn.jinl.dao;

import com.cn.jinl.domain.HealthCheck;
import com.cn.jinl.domain.HealthCheckExample;
import java.util.List;

import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

public interface HealthCheckMapper {
    int countByExample(HealthCheckExample example);

    int deleteByExample(HealthCheckExample example);

    int deleteByPrimaryKey(String id);

    int insert(HealthCheck record);

    int insertSelective(HealthCheck record);

    List<HealthCheck> selectByExample(HealthCheckExample example);

    HealthCheck selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") HealthCheck record, @Param("example") HealthCheckExample example);

    int updateByExample(@Param("record") HealthCheck record, @Param("example") HealthCheckExample example);

    int updateByPrimaryKeySelective(HealthCheck record);

    int updateByPrimaryKey(HealthCheck record);

    int batchUpdateCheckHealthStatus(List<HealthCheck> updates);

    List<HealthCheck> selectLatestCheckedList();

    List<HealthCheck> getLastestData(QueryForm queryForm);

    List<HealthCheck> selectLogs(QueryForm queryForm);

    int countHealthCheckNear();
}